package oa.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.tiles.autotag.core.runtime.annotation.Parameter;
import org.junit.runners.Parameterized.Parameters;

import oa.entity.Message;

public interface MessageMapper {
	List<Message> getAll(int receiverId);
	List<Message> getAllSave(int receiverId);
	Message fetchById(int id);
	List<Message> getUnread(@Param("receiverId")int receiverId,
			@Param("isRead")int isRead);
	List<Message> getIndelete();
	void messageadd(Message message);
	void messageupdate(Message message);
	void deletemessage(int id);
	int selectaddId();
	Message fetchByIdReaded(int id);
}
